<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form
	action="<?php echo url_for('curso/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>"
	method="post"
	<?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
	<?php if (!$form->getObject()->isNew()): ?> <input type="hidden"
	name="sf_method" value="put" /> <?php endif; ?>
<table>
	<tfoot>
		<tr>
			<td colspan="2"><?php echo $form->renderHiddenFields(false) ?> &nbsp;<a
				href="<?php echo url_for('curso/index') ?>">Back to list</a> <?php if (!$form->getObject()->isNew()): ?>
			&nbsp;<?php echo link_to('Delete', 'curso/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
			<?php endif; ?> <input type="submit" value="Save" /></td>
		</tr>
	</tfoot>
	<tbody>
	<?php echo $form->renderGlobalErrors() ?>
		<tr>
			<th><?php echo $form['name']->renderLabel() ?></th>
			<td><?php echo $form['name']->renderError() ?> <?php echo $form['name'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['description']->renderLabel() ?></th>
			<td><?php echo $form['description']->renderError() ?> <?php echo $form['description'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['category_id']->renderLabel() ?></th>
			<td><?php echo $form['category_id']->renderError() ?> <?php echo $form['category_id'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['updated_at']->renderLabel() ?></th>
			<td><?php echo $form['updated_at']->renderError() ?> <?php echo $form['updated_at'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['instructor_id']->renderLabel() ?></th>
			<td><?php echo $form['instructor_id']->renderError() ?> <?php echo $form['instructor_id'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['image']->renderLabel() ?></th>
			<td><?php echo $form['image']->renderError() ?> <?php echo $form['image'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['created_at']->renderLabel() ?></th>
			<td><?php echo $form['created_at']->renderError() ?> <?php echo $form['created_at'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['slug']->renderLabel() ?></th>
			<td><?php echo $form['slug']->renderError() ?> <?php echo $form['slug'] ?>
			</td>
		</tr>
	</tbody>
</table>
</form>
